import Vue from 'vue';
import Router from 'vue-router';
import CampusBinhai from '@/components/CampusBinhai.vue';
import CampusChashan from '@/components/CampusChashan.vue';
import CampusYueqing from '@/components/CampusYueqing.vue';
import StudentSystem from '@/components/StudentSystem.vue';
import BuildingFive from '@/components/BuildingFive.vue'; // 假设五号楼组件
import BuildingSix from '@/components/BuildingSix.vue'; // 假设六号楼组件
import BuildingSeven from '@/components/BuildingSeven.vue'; // 假设七号楼组件

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'CampusBinhai',
      component: CampusBinhai
    },
    {
      path: '/chashan',
      name: 'CampusChashan',
      component: CampusChashan,
      children: [
        {
          path: 'wuhouling',
          name: 'BuildingFive',
          component: BuildingFive
        },
        {
          path:'liuhouling',
          name: 'BuildingSix',
          component: BuildingSix
        },
        {
          path: 'qihouling',
          name: 'BuildingSeven',
          component: BuildingSeven
        }
      ]
    },
    {
      path: '/yueqing',
      name: 'CampusYueqing',
      component: CampusYueqing
    },
    {
      path: '/studentSystem',
      name: 'StudentSystem',
      component: StudentSystem
    }
  ]
});